package idea.mybatis.db.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author idea
 * @since 2017-01-01
 */
@TableName("TL_POINT_USER")
public class TlPointUser extends Model<TlPointUser> {

    private static final long serialVersionUID = 1L;

	@TableId(value="PU_ID", type= IdType.AUTO)
	private Integer puId;
	@TableField("USER_ID")
	private Integer userId;
	@TableField("USER_TYPE")
	private Integer userType;
	@TableField("USER_PHONE")
	private String userPhone;
	@TableField("POINT_TOTAL")
	private Integer pointTotal;
	@TableField("CREATE_TIME")
	private Date createTime;


	public Integer getPuId() {
		return puId;
	}

	public TlPointUser setPuId(Integer puId) {
		this.puId = puId;
		return this;
	}

	public Integer getUserId() {
		return userId;
	}

	public TlPointUser setUserId(Integer userId) {
		this.userId = userId;
		return this;
	}

	public Integer getUserType() {
		return userType;
	}

	public TlPointUser setUserType(Integer userType) {
		this.userType = userType;
		return this;
	}

	public String getUserPhone() {
		return userPhone;
	}

	public TlPointUser setUserPhone(String userPhone) {
		this.userPhone = userPhone;
		return this;
	}

	public Integer getPointTotal() {
		return pointTotal;
	}

	public TlPointUser setPointTotal(Integer pointTotal) {
		this.pointTotal = pointTotal;
		return this;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public TlPointUser setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}

	public static final String PU_ID = "PU_ID";

	public static final String USER_ID = "USER_ID";

	public static final String USER_TYPE = "USER_TYPE";

	public static final String USER_PHONE = "USER_PHONE";

	public static final String POINT_TOTAL = "POINT_TOTAL";

	public static final String CREATE_TIME = "CREATE_TIME";

	@Override
	protected Serializable pkVal() {
		return this.puId;
	}

	@Override
	public String toString() {
		return "TlPointUser{" +
			"puId=" + puId +
			", userId=" + userId +
			", userType=" + userType +
			", userPhone=" + userPhone +
			", pointTotal=" + pointTotal +
			", createTime=" + createTime +
			"}";
	}
}
